package demo;

class Point{
	double x, y, z;
	public Point(double _x, double _y, double _z) {		
	this.x=_x;
	this.y=_y;
	this.z=_z;
	}
	public double getDistance(Point back1,Point back2) {
		return Math.sqrt((back2.x-back1.x)*(back2.x-back1.x)
				+(back2.y-back1.y)*(back2.y-back1.y)
				+(back2.z-back1.z)*(back2.z-back1.z));
	}
}
class TestPoint{
	public static void main(String[] args) {
		Point back1  =new Point(2.0,4.0,5.0);
		Point back2  =new Point(8.0,9.0,1.0);
		System.out.println(back1.getDistance(back1,back2));
	}
}